//
//  ShopMessageTableViewCell.m
//  jianpai
//
//  Created by yrapp on 16/2/1.
//  Copyright © 2016年 yrapp. All rights reserved.
//

#import "ShopMessageTableViewCell.h"

@implementation ShopMessageTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
 
        self.selectionStyle = UITableViewCellSelectionStyleNone;

        
        UILabel *orderMessage = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 10, 25)];
        orderMessage.text = @"订单留言";
        orderMessage.textColor = [UIColor grayColor];
        [orderMessage sizeToFit];
        [self.contentView addSubview:orderMessage];
        
        _messageText = [[UITextView alloc] initWithFrame:CGRectMake(15, 40, kWidth - 30, 30)];
        _messageText.backgroundColor = [UIColor colorWithRed:237.0/255 green:237.0/255 blue:237.0/255 alpha:1];
        _messageText.tag = 1000;
        [self.contentView addSubview:_messageText];
        
        _placeLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 5, 10, 30)];
        _placeLabel.text = @"选填,备注卖家您对商品的特殊要求";
        [_placeLabel sizeToFit];
        _placeLabel.font = [UIFont systemFontOfSize:14];
        _placeLabel.tag = 999;
        _placeLabel.textColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.2];
        [_messageText addSubview:_placeLabel];

    }
    
    return self;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
